﻿
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4115386683594834";
/* مربع */
google_ad_slot = "2712923272";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


<style>
table{background-color:#446592;font-family:tahoma;width:30px;height:40px;}
input{text-align:center;}
input:hover{background:orange;}
#a3,#b3,#c3,#d3{background-color:#f54e5a;}


</style>
<head><title>اله حاسبه</title></head>
<script>
	function a()
	{
		a3.value= a1.value - a2.value;
	}
	
	function b()
	{
		b3.value=parseFloat(b1.value)+parseFloat(b2.value);
	}
	
	function c()
	{
		c3.value=c1.value*c2.value;
	}
	
	function d()
	{
		d3.value=d1.value/d2.value;
	}

</script>
<html dir="rtl">
<form>
<center>
	<table border="0" cellpadding="10" cellspacing="10" >
	
	<tr>
		<td>
		<input type="text" id="a1">
		<input type="text" id="a2">
		<input type="button" value="-" onclick="a()">
		<input type="text" id ="a3">
		
		</td>
	</tr>
	<tr>
		<td>
			<input type="text" id="b1">
			<input type="text" id="b2">
			<input type="button" value="+" onclick="b()">
			<input type="text" id="b3">
		
		</td>
		
	</tr>
	
	<tr>
		<td>
			<input type="text" id="c1">
			<input type="text" id="c2">
			<input type="button" value="*" onclick="c()">
			<input type="text" id="c3">
				
		</td>
		
	</tr>
	<tr>
		<td>
			<input type="text" id="d1">
			<input type="text" id="d2">
			<input type="button" value="/" onclick="d()">
			<input type="text" id="d3">
			<input type="reset"value="clear">		
		</td>	
	</tr>
	
</form>	
</center>
</html>